package lab02.test12;

/**
 * Created by admin on 2017/10/20.
 */
public class Rectangular extends Shape {
    double length;
    double width;
    @Override
    double getGirth() {
        return girth=(length+width)*2;
    }

    @Override
    double getArea() {
        return area=length*width;
    }
}
